//
// Created by luolijun on 2021/11/7.
//
#include "falcon/model.h"

#include "utils/asserts.h"

#include <string>

namespace falcon {

extern int LoadProject(const std::string& fileName, Project* project) {
    ASSERT(nullptr != project);
    project->name = fileName;

    Package* package = new Package();
    package->name = "MYPackage";
    project->objects.push_back(package);

    Diagram* diagram1 = new Diagram();
    diagram1->name = "Diagram01";
    project->diagrams.push_back(diagram1);

    Diagram* diagram2 = new Diagram();
    diagram2->name = "Diagram02";
    package->diagrams.push_back(diagram2);

    return 0;
}

extern int SaveProject(const std::string& fileName, falcon::Project* project) {
    ASSERT(nullptr != project);
    return 0;
}

extern void ClearProject(Package* project) {
    ASSERT(nullptr != project);
}

} // namespace falcon
